# coding=utf-8
class Solution:
    def isPalindrome(self, x: int) -> bool:
        if x < 0:
            return False
        y = str(x)
        z = y[::-1]
        if x == int(z):
            return True
        else:
            return False
